package com.coc.controller.sysProvince;



import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.extension.api.ApiController;
import com.baomidou.mybatisplus.extension.api.R;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.coc.entity.core.JsonResult;
import com.coc.entity.core.ResultTool;
import com.coc.entity.sysProvince.SysProvince;
import com.coc.service.sysProvince.SysProvinceService;
import com.fasterxml.jackson.core.JsonToken;
import org.springframework.web.bind.annotation.*;

import javax.annotation.Resource;
import java.io.Serializable;
import java.util.List;

/**
 * 省份设置(SysProvince)表控制层
 *
 * @author songju
 * @since 2020-03-06 14:01:04
 */
@RestController
@RequestMapping("sysProvince")
public class SysProvinceController extends ApiController {
    /**
     * 服务对象
     */
    @Resource
    private SysProvinceService sysProvinceService;
    @PostMapping("/getProLists")
    public JsonResult getProLists() {
        List<SysProvince> proLists = sysProvinceService.getProLists();
        return ResultTool.success(proLists);
    }

}